#{extends 'frame.html' /}

#{set title:'店铺管理' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/admin/shop-admin.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/datePicker.css'}" />

#{/set}

<div class="contentCard">

	<div class="contentTitle">店铺列表</div>

	<div id="taskFilterPanel">

		<div class="clearfix mb10">

			<span class="floatLeft mr10">所属账号</span>

			<input type="text" id="userNick" class="floatLeft mr10 inputText" />

			<span class="floatLeft mr10">店铺旺旺ID</span>

			<input type="text" id="nick" class="floatLeft mr10 inputText" />

		</div>

		<div class="clearfix">

			 <div class="cal-content">

			    <span class="floatLeft mr10">注册时间</span>

				<span class="floatLeft mr10 cal-date-input">

					<input class="inputDate start-date" id="regTimeStart" readonly="readonly" value=""  />

				</span>

				<span class="floatLeft mr10 med-cal-split">-</span>

				<span class="floatLeft mr10 cal-date-input">

					<input class="inputDate end-date" id="regTimeEnd" readonly="readonly" value="" />

				</span>

				<a class="stdColorButton floatLeft queryBtn" href="javascript:;" id="queryBtn">查询</a>

			</div>	

		</div>

	</div>

	<div class="mt10">

		<table class="normTable">

			<thead>

				<tr>

					<td>所属账号</td>

					<td>平台</td>

					<td>店铺名称</td>

					<td>发货人姓名</td>

					<td>发货人电话</td>

					<td>发货地址</td>

					<td>发货人详细地址地址</td>

					<td>快递揽件网点编码</td>

					<td width="200px">店铺网址</td>

					<td>创建时间</td>

					<td>操作</td>

				</tr>

			</thead>

			<tbody id="shopContainer"></tbody>

		</table>

		<div id="noMsg">

			<div class="warnBox">

				<span class="iconfont">&#xf00b6;</span>

				没有店铺!

			</div>

		</div>

		<div class="pagin-btm clearFix"style="display: none;">

			<div class="pagination"></div>

		</div>

		<div class="popWrapper" style="display: none;" id="tr_loading_mask">

			<div class="maskLayer"></div>

			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />

		</div>

	</div>

</div>



<!--shop muban-->

<textarea class="muban" id="trowTemp">

	{{#results}}

	<tr bid="{{id}}">

		<td>{{userNick}}</td>

		<td data-value="{{platform}}"> <i class="plat_small {{platIcon}}"></i>

			{{platformName}}

		</td>

		<td title="{{nick}}">{{nick}}</td>

		<td title="{{sellerName}}">{{sellerName}}</td>

		<td title="{{mobile}}">{{mobile}}</td>

		<td title="">

			{{consignee}}&nbsp;{{state}}&nbsp;{{city}}&nbsp;{{region}}&nbsp;{{address}}

		</td>

		<td title="{{street}}">{{street}}</td>

		<td title="{{branch}}">{{branch}}</td>

		<td title="{{url}}" class="urlCss">

			<span title="{{url}}">{{url}}</span>

		</td>

		<td>{{createtime}}</td>

		<td>

			<a class="stdColorButton floatLeft updateShopBtn" href="javascript:;">修改</a>

		</td>

	</tr>

	{{/results}}

</textarea>

<textarea id="quyuTemp" class="muban">

	{{#results}}

	<option rid="{{id}}">{{name}}</option>

	{{/results}}

</textarea>



<div class="popWrapper" id="editShop">

	<div class="maskLayer"></div>

	<div class="modalWnd">

		<a href="javascript:;" class="wnd_Close_Icon" title="关闭窗口"></a>

		<h3 class="topTile">修改店铺</h3>

		<div class="modalWndInner">

			<div id="shopInfoShower">

				#{authenticityToken/}

				<form id="editShopForm">

				<input type="hidden" name="id" id="shopId" value=""/>

				<input type="hidden" name="platform" id="shopPlatform" value=""/>

					<div class="panelLine">

						<span>店铺首页网址</span>

					</div>

					<div class="panelLine">

						<input type="text" class="inputText floatLeft ls long required" id="shopUrl" name="wangzhi" />

					</div>

					<div class="panelLine">

						<span>店铺账号（主账号）</span>

					</div>

					<div class="panelLine">

						<input type="text" class="inputText floatLeft ls long required" id="shopNick" name="nick" />

					</div>

					

					<div class="panelLine">

						<span>发货人姓名</span>

					</div>

					<div class="panelLine">

						<input type="text" class="inputText floatLeft ls long required" id="sellerName" name="sellerName" />

					</div>

					<div class="panelLine">

						<span>发货人电话</span>

					</div>

					<div class="panelLine">

						<input type="text" class="inputText floatLeft ls long required" id="mobile" name="mobile" />

					</div>

					

					<div class="panelLine">

						<div class="floatLeft ls">发件地址</div>

					</div>

					<div class="panelLine">

						<div id="selectAdd" class="">

							<select class="selectAddress required province" id="first" name="first">

								<option value="" selected="selected">请选择</option>

							</select>

							<select class="selectAddress required city" id="second" name="second">

								<option value="" selected="selected">请选择</option>

							</select>

							<select class="selectAddress required region" id="thrid" name="thrid">

								<option value="" selected="selected">请选择</option>

							</select>

						</div>

					</div>

					

					<div class="panelLine">

						<span>发货人详细地址</span>

					</div>

					<div class="panelLine">

						<input type="text" class="inputText floatLeft ls long required" id="street" name="street" />

					</div>

					<div class="panelLine">

						<span>快递揽件网点编码</span>

					</div>

					<div class="panelLine">

						<input type="text" class="inputText floatLeft ls long required" id="branch" name="branch" />

					</div>

					

				</form>

			</div>

		</div>

		<div class="wndBotButtonSection">

					<a id="btnSave" href="javascript:;" class="botButton">保存</a>

		</div>

	</div>

</div>





#{set 'moreScripts'}

<script src="@{'/public/javascripts/date.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.datePicker.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/admin/shop.js'}" type="text/javascript"></script>

<script type="text/javascript">App.module = 'shop';</script>

#{/set}